Optimal. Leaf size=73 \[ \frac {1}{\left (c d^2-a e^2\right ) (d+e x)}+\frac {c d \log (a e+c d x)}{\left (c d^2-a e^2\right )^2}-\frac {c d \log (d+e x)}{\left (c d^2-a e^2\right )^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 73, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.057, Rules used = {640, 46}
\begin {gather*} \frac {1}{(d+e x) \left (c d^2-a e^2\right )}+\frac {c d \log (a e+c d x)}{\left (c d^2-a e^2\right )^2}-\frac {c d \log (d+e x)}{\left (c d^2-a e^2\right )^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 46
Rule 640
Rubi steps
\begin {align*} \int \frac {1}{(d+e x) \left (a d e+\left (c d^2+a e^2\right ) x+c d e x^2\right )} \, dx &=\int \frac {1}{(a e+c d x) (d+e x)^2} \, dx\\ &=\int \left (\frac {c^2 d^2}{\left (c d^2-a e^2\right )^2 (a e+c d x)}-\frac {e}{\left (c d^2-a e^2\right ) (d+e x)^2}-\frac {c d e}{\left (c d^2-a e^2\right )^2 (d+e x)}\right ) \, dx\\ &=\frac {1}{\left (c d^2-a e^2\right ) (d+e x)}+\frac {c d \log (a e+c d x)}{\left (c d^2-a e^2\right )^2}-\frac {c d \log (d+e x)}{\left (c d^2-a e^2\right )^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 66, normalized size = 0.90 \begin {gather*} \frac {c d^2-a e^2+c d (d+e x) \log (a e+c d x)-c d (d+e x) \log (d+e x)}{\left (c d^2-a e^2\right )^2 (d+e x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.74, size = 75, normalized size = 1.03
method | result | size |
default | \(-\frac {1}{\left (e^{2} a -c \,d^{2}\right ) \left (e x +d \right )}-\frac {c d \ln \left (e x +d \right )}{\left (e^{2} a -c \,d^{2}\right )^{2}}+\frac {c d \ln \left (c d x +a e \right )}{\left (e^{2} a -c \,d^{2}\right )^{2}}\) | \(75\) |
risch | \(-\frac {1}{\left (e^{2} a -c \,d^{2}\right ) \left (e x +d \right )}+\frac {c d \ln \left (-c d x -a e \right )}{a^{2} e^{4}-2 a c \,d^{2} e^{2}+c^{2} d^{4}}-\frac {c d \ln \left (e x +d \right )}{a^{2} e^{4}-2 a c \,d^{2} e^{2}+c^{2} d^{4}}\) | \(103\) |
norman | \(\frac {e x}{d \left (e^{2} a -c \,d^{2}\right ) \left (e x +d \right )}+\frac {c d \ln \left (c d x +a e \right )}{a^{2} e^{4}-2 a c \,d^{2} e^{2}+c^{2} d^{4}}-\frac {c d \ln \left (e x +d \right )}{a^{2} e^{4}-2 a c \,d^{2} e^{2}+c^{2} d^{4}}\) | \(105\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 104, normalized size = 1.42 \begin {gather*} \frac {c d \log \left (c d x + a e\right )}{c^{2} d^{4} - 2 \, a c d^{2} e^{2} + a^{2} e^{4}} - \frac {c d \log \left (x e + d\right )}{c^{2} d^{4} - 2 \, a c d^{2} e^{2} + a^{2} e^{4}} + \frac {1}{c d^{3} - a d e^{2} + {\left (c d^{2} e - a e^{3}\right )} x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.04, size = 109, normalized size = 1.49 \begin {gather*} \frac {c d^{2} - a e^{2} + {\left (c d x e + c d^{2}\right )} \log \left (c d x + a e\right ) - {\left (c d x e + c d^{2}\right )} \log \left (x e + d\right )}{c^{2} d^{4} x e + c^{2} d^{5} - 2 \, a c d^{2} x e^{3} - 2 \, a c d^{3} e^{2} + a^{2} x e^{5} + a^{2} d e^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 301 vs.
\(2 (63) = 126\).
time = 0.39, size = 301, normalized size = 4.12 \begin {gather*} - \frac {c d \log {\left (x + \frac {- \frac {a^{3} c d e^{6}}{\left (a e^{2} - c d^{2}\right )^{2}} + \frac {3 a^{2} c^{2} d^{3} e^{4}}{\left (a e^{2} - c d^{2}\right )^{2}} - \frac {3 a c^{3} d^{5} e^{2}}{\left (a e^{2} - c d^{2}\right )^{2}} + a c d e^{2} + \frac {c^{4} d^{7}}{\left (a e^{2} - c d^{2}\right )^{2}} + c^{2} d^{3}}{2 c^{2} d^{2} e} \right )}}{\left (a e^{2} - c d^{2}\right )^{2}} + \frac {c d \log {\left (x + \frac {\frac {a^{3} c d e^{6}}{\left (a e^{2} - c d^{2}\right )^{2}} - \frac {3 a^{2} c^{2} d^{3} e^{4}}{\left (a e^{2} - c d^{2}\right )^{2}} + \frac {3 a c^{3} d^{5} e^{2}}{\left (a e^{2} - c d^{2}\right )^{2}} + a c d e^{2} - \frac {c^{4} d^{7}}{\left (a e^{2} - c d^{2}\right )^{2}} + c^{2} d^{3}}{2 c^{2} d^{2} e} \right )}}{\left (a e^{2} - c d^{2}\right )^{2}} - \frac {1}{a d e^{2} - c d^{3} + x \left (a e^{3} - c d^{2} e\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.45, size = 111, normalized size = 1.52 \begin {gather*} \frac {c^{2} d^{2} \log \left ({\left | c d x + a e \right |}\right )}{c^{3} d^{5} - 2 \, a c^{2} d^{3} e^{2} + a^{2} c d e^{4}} - \frac {c d e \log \left ({\left | x e + d \right |}\right )}{c^{2} d^{4} e - 2 \, a c d^{2} e^{3} + a^{2} e^{5}} + \frac {1}{{\left (c d^{2} - a e^{2}\right )} {\left (x e + d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.13, size = 95, normalized size = 1.30 \begin {gather*} \frac {2\,c\,d\,\mathrm {atanh}\left (\frac {a^2\,e^4-c^2\,d^4}{{\left (a\,e^2-c\,d^2\right )}^2}+\frac {2\,c\,d\,e\,x}{a\,e^2-c\,d^2}\right )}{{\left (a\,e^2-c\,d^2\right )}^2}-\frac {1}{\left (a\,e^2-c\,d^2\right )\,\left (d+e\,x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________